package Views;

import UCM.UCDisplayMakeFlight;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JPanel;

/**
 *
 * @author Joshua King
 */
public class ViewDisplayCreateFlight extends JPanel {
    protected JButton makeFlightButton = new JButton("Make Flight");
    private final UCDisplayMakeFlight UCDisplayMakeFlight = new UCDisplayMakeFlight(this);

    public ViewDisplayCreateFlight() {
        setLayout(new FlowLayout());
        add(makeFlightButton);
        makeFlightButton.addActionListener(new AdapterUCCToAL(UCDisplayMakeFlight));
    }

    public void setMakeFlightVisible() {
        ViewMain.getInstance().updateMakeFlight();
    }
}
